#include<stdio.h>
#include<string.h>
// Created by baoch on 2024/11/5.
int main()
{
    int i;//控制循环输出单个字符
    char chs[50] = "I am a program";
    int l = strlen(chs);//获取字符串长度
    strcpy(chs,"I am a program");//复制函数
    for(i = 0;i < l;i++)
    {
        putchar(chs[i]);
    }
    return 0;
}
